package org.mbcorp.sar.dao;

import java.util.List;

import org.mbcorp.sar.model.Solicitante;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

public interface SolicitanteDAO extends JpaRepository<Solicitante, Integer> {
	
	@Query("SELECT s FROM Solicitante s WHERE s.login = :login")
    public List<Solicitante> buscarPorLogin(@Param("login") String login);
}
